package com.hhq.internationalization.api;

import com.hhq.internationalization.util.MessageUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Description: some description </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/5/6 11:37
 */
@RestController
@RequestMapping("/test")
public class TestApi {
    @GetMapping
    public String testInfo() {
        String transformMessage = "username.repeat";
        return MessageUtils.getLocale(transformMessage);
    }

}
